home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2002 November / SGI Freeware 2002 November - Disc 2.iso / dist / fw_gtk-engines.idb / usr / freeware / share / themes / Notif / gtk / gtkrc.z / gtkrc
Text File  |  2001-10-09  |  3KB  |  151 lines

  1. # pixmap_path "<dir 1>:<dir 2>:<dir 3>:..."
  2. #
  3. # include "rc-file"
  4. #
  5. # style <name> [= <name>]
  6. # {
  7. #   <option>
  8. # }
  9. #
  10. # widget <widget_set> style <style_name>
  11. # widget_class <widget_class_set> style <style_name>
  12.  
  13. # testgtkrc2 sets all the buttons in the main window to blue by default
  14. #include "testgtkrc2"
  15.  
  16. style "default"
  17. {
  18.   font = "-*-helvetica-medium-r-normal--10-*-*-*-*-*-*-*"
  19.   bg[NORMAL] = { 0.75, 0.75, 0.75 }
  20.   bg[PRELIGHT] = { 0.75, 0.75, 0.75 }
  21.   engine "notif" 
  22.   {
  23.   }
  24. }
  25.  
  26. style "list"
  27. {
  28.    bg[NORMAL] = { 1.0, 0.5, 0.5 }
  29.    bg[PRELIGHT] = { 0.5, 0.5, 0.5 }
  30. }
  31.  
  32. widget_class "GtkCTree" style "list"
  33. widget_class "GtkCList" style "list"
  34.  
  35. style "window"
  36. {
  37. #  bg_pixmap[NORMAL] = "warning.xpm"
  38. }
  39.  
  40. style "scale"
  41. {
  42. #  fg[NORMAL] = { 1.0, 0, 0 }
  43. #  bg[PRELIGHT] = { 1.0, 1.0, 0 }
  44. #  bg_pixmap[NORMAL] = "<parent>"
  45. }
  46.  
  47. style "button"
  48. {
  49. #  fg[PRELIGHT] = { 1.0, 1.0, 1.0 }
  50. #  bg[PRELIGHT] = { 0, 0, 0.75 }
  51. #  bg[PRELIGHT] = { 0.75, 0, 0x00 }
  52. }
  53.  
  54. style "toggle_button" = "button"
  55. {
  56. #  fg[NORMAL] = { 1.0, 0, 0 }
  57. #  fg[ACTIVE] = { 1.0, 0, 0 }
  58. #  bg_pixmap[NORMAL] = "<parent>"
  59. }
  60.  
  61. style "text"
  62. {
  63. #  bg_pixmap[NORMAL] = "marble.xpm"
  64. #  text[NORMAL] = { 0.2, 0.2, 1.0 }
  65. #  fg[NORMAL] = { 1.0, 1.0, 1.0 }
  66. #  base[NORMAL] = { 0.0, 0.0, 0.0 }
  67. }
  68.  
  69. style "slider"
  70. {
  71. #  fg[NORMAL] = { 1.0, 1.0, 1.0 }
  72. #  bg[NORMAL] = { 0.0, 0.0, 1.0 }
  73. #  bg[ACTIVE] = { 0.0 ,0.0, 0.5 }
  74. #  bg[PRELIGHT] = { 0.75 ,0.75, 1.0 }
  75. }
  76.  
  77. style "ruler"
  78. {
  79. #  font = '-adobe-helvetica-medium-r-normal--*-80-*-*-*-*-*-*'
  80. }
  81.  
  82. style "curve"
  83. {
  84. #  fg[NORMAL] = { 58000, 0, 0 }            # red
  85. }
  86.  
  87. style "red-bar"
  88. {
  89. #  bg[PRELIGHT] = { 0.95, .55, 0.55 }
  90. }
  91.  
  92. # override testgtk2, introduce the green color in the button list
  93. style 'button_list' = 'button'
  94. {
  95. #  font = "-adobe-helvetica-medium-r-normal--*-100-*-*-*-*-*-*"
  96. #  bg[PRELIGHT] = { 0, 0.75, 0x00 }
  97. }
  98. widget "main window.*GtkScrolledWindow.*GtkButton*" style "button_list"
  99.  
  100. # common default
  101. class "GtkWidget" style "default"
  102.  
  103. class "GtkScrollbar" style "red-bar"
  104.  
  105. widget_class "GtkWindow" style "window"
  106. widget_class "GtkDialog" style "window"
  107. widget_class "GtkFileSelection" style "window"
  108. widget_class "*Gtk*Scale" style "scale"
  109. widget_class "*GtkCheckButton*" style "toggle_button"
  110. widget_class "*GtkRadioButton*" style "toggle_button"
  111. widget_class "*GtkButton*" style "button"
  112. widget_class "*Ruler" style "ruler"
  113. widget_class "*GtkText" style "text"
  114. widget "*GtkCurve" style "curve"
  115.  
  116. binding "test1"
  117. {
  118.   bind "<ctrl>1" {
  119.     "debug-msg" ("hallo and") 
  120.     "debug-msg" ("huhu")
  121.   }
  122. }
  123.  
  124. binding "test2"
  125. {
  126.   bind "<ctrl>1" {
  127.     "debug-msg" ("jup!") 
  128.   }
  129. }
  130.  
  131. # possible priorities are (in ascending order):
  132. # lowest
  133. # gtk         (used by gtk for internal class bindings)
  134. # application (for hard coded bindings on application basis)
  135. # rc          (used implicitel by rc files)
  136. # highest
  137. class "GtkButton" binding "test1"           # implicit : rc
  138. class "GtkButton" binding : highest "test2" # override "rc" priority
  139.  
  140. binding "clist-test"
  141. {
  142.   bind "j" {
  143.     "scroll-vertical" (step-backward, 0.0)
  144.   }
  145.   bind "k" {
  146.     "scroll-vertical" (step-forward, 0.0)
  147.   }
  148. }
  149.  
  150. class "GtkCList" binding "clist-test"
  151.